package com.wing.cabinet.model.request;

import com.wing.cabinet.model.entity.CheckedResultDetail;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 盘验结果表Form
 *
 * @author
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
public class CheckedResultDetailForm {

    /**
     * ID
     */
    private Long id;

    /**
     * 创建者
     */
    private Long creator;

    /**
     * 修改者
     */
    private Long modifier;

    /**
     * 创建人
     */
    private String creatorName;

    /**
     * 修改人
     */
    private String modifierName;

    /**
     * 盘验结果id
     */
    private Long resultId;

    /**
     * 暂存/回收/维修任务id
     */
    private Long storageInoutId;

    /**
     * 是否同步
     */
    private Boolean isSync;

    /**
     * 柜子id
     */
    private Long cabId;

    /**
     * sku id
     */
    private Long skuId;

    /**
     * 数量
     */
    private Integer quantity;

    /**
     * 企业id
     */
    private Long companyId;

    /**
     * 操作类型
     */
    private CheckedResultDetail.OperationType operationType;

    /**
     * 业务类型
     */
    private CheckedResultDetail.BusinessType businessType;

    /**
     * 柜子编号
     */
    private String cabCode;

    /**
     * sku 编号
     */
    private String skuCode;

    /**
     * 货道编号
     */
    private String spaceCode;

    /**
     * operationTypeChecked
     */
    private Integer operationTypeChecked;

    /**
     * 业务类型
     */
    private CheckedResultDetail.BusinessTypeChecked businessTypeChecked;

    /**
     * quantityCurrentChecked
     */
    private Integer quantityCurrentChecked;

    /**
     * quantityAfterChecked
     */
    private Integer quantityAfterChecked;

    /**
     * repairPrice
     */
    private BigDecimal repairPrice;

    /**
     * 签收数量
     */
    private Integer quantitySign;

    /**
     * 是否已同步：no(0,未同步);yes(1,已同步);
     */
    private Integer isSyns;

    /**
    * 同步时间
    */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime synsTime;

    /**
     * 货道id
     */
    private Long spaceId;


    public interface Add{}

    public interface Update{}

    private Integer quantityChecked;

    /**
     * 企业编码
     */
    private String enterpriseCode;

    private String mainCabCode;


    private BigDecimal price;

    private BigDecimal total;
    private String costCenter;

    /**
     * 明细编号
     */
    private String code;
}
